package com.wang.demo01;

import lombok.Data;

/**
 * @Author 19225
 * @create 2020/12/2 0:16
 */
@Data
public class Proxy implements Rent{

    private Host host;
    public Proxy()
    {}
    public Proxy(Host host) {
        this.host = host;
    }
    public void rent() {
        seeHouse();
        host.rent();
        fare();
    }

    public void seeHouse()
    {
        System.out.println("看房");
    }
    public void fare()
    {
        System.out.println("付款");
    }
}
